package com.item.service;

import com.item.dao.FeedBackMapper;
import com.item.dao.model.FeedBack;
import com.item.dao.model.FeedBackExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedBackService {
    @Autowired
    private FeedBackMapper feedBackMapper;

    private static final Logger logger = Logger.getLogger(FeedBackService.class);

    public int countByExample(FeedBackExample example) {
        return this.feedBackMapper.countByExample(example);
    }

    public FeedBack selectByPrimaryKey(String id) {
        return this.feedBackMapper.selectByPrimaryKey(id);
    }

    public List<FeedBack> selectByExample(FeedBackExample example) {
        return this.feedBackMapper.selectByExampleWithBLOBs(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.feedBackMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(FeedBack record) {
        return this.feedBackMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(FeedBack record) {
        return this.feedBackMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    public int deleteByExample(FeedBackExample example) {
        return this.feedBackMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(FeedBack record, FeedBackExample example) {
        return this.feedBackMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(FeedBack record, FeedBackExample example) {
        return this.feedBackMapper.updateByExampleWithBLOBs(record, example);
    }

    public int insert(FeedBack record) {
        return this.feedBackMapper.insert(record);
    }

    public int insertSelective(FeedBack record) {
        return this.feedBackMapper.insertSelective(record);
    }
}